import { Component, OnInit,Input } from '@angular/core';
import {UtilService} from "../../../my-service/util.service";
import {Router,ActivatedRoute} from "@angular/router";

@Component({
  selector: 'app-team-nav',
  templateUrl: './team-nav.component.html',
  styleUrls: ['./team-nav.component.css'],
})
export class TeamNavComponent implements OnInit {
@Input() navInfo:any;
  constructor(
    private utilServe:UtilService,
    private router:Router,
    private routerInfo:ActivatedRoute
  ) {}


  ngOnInit() {
  }
  teamMinute(){
    if(this.navInfo.p_name){
      this.router.navigate(['../minute',{id:this.navInfo.id,name:this.navInfo.teamName}],{relativeTo:this.routerInfo});
    }else {
       return false;
    }

  }
}
